/*
*
*chat页面 问答
*/
import { get, post } from '@/utils/request'
import type { AxiosProgressEvent, GenericAbortSignal } from 'axios'
//
// /faqs/qslist
// 问题列表
export function qsList<T>(req) {
  return post<T>({
    url: '/faqs/qslist',
    data: req
    
  })
}
// /faqs/getAnswer
// 问题答案
export function getQuestionsAnswer<T>( params: {
  question:any,
  onDownloadProgress?: (progressEvent: AxiosProgressEvent) => void
},) {
  const data={
    question:params.question,
  }
  return post<T>({
    url: '/faqs/getAnswer',
    data,
    onDownloadProgress: params.onDownloadProgress,
  })
}
